<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>无标题文档</title>
<style type="text/css">
<!--
body {
	margin-left: 3px;
	margin-top: 0px;
	margin-right: 3px;
	margin-bottom: 0px;
}
.STYLE1 {
	color: #e1e2e3;
	font-size: 12px;
}
.STYLE6 {color: #000000; font-size: 12; }
.STYLE10 {color: #000000; font-size: 12px; }
.STYLE19 {
	color: #344b50;
	font-size: 12px;
}
.STYLE21 {
	font-size: 12px;
	color: #3b6375;
}
.STYLE22 {
	font-size: 12px;
	color: #295568;
}
*{font-family:Tahoma, Arial, Helvetica, Sans-serif,"宋体";}
table{
	width:85%;
	margin:0px auto;
	font:Georgia 11px;
	font-size:12px;
	color:#333333;
	text-align:center;
	border-collapse:collapse;/*细线表格代码*/
}
table td{
	border:1px solid #999;/*细线表格线条颜色*/
	height:22px;
}
caption{text-align:center;font-size:12px;font-weight:bold;margin:0 auto;}
tr.t1 td {background-color:#fff;}
tr.t2 td {background-color:#eee;}
tr.t3 td {background-color:#ccc;}
th,tfoot tr td{font-weight:bold;text-align:center;background:#c5c5c5;}
th{line-height:30px;height:30px;}
tfoot tr td{background:#fff;line-height:26px;height:26px;}
thead{border:1px solid #999;}
thead tr td{text-align:center;}
#page{text-align:center;float:right;}
#page a,#page a:visited{width:60px;height:22px;line-height:22px;border:1px black solid;display:block;float:left;margin:0 3px;background:#c9c9c9;
text-decoration:none;}
#page a:hover{background:#c1c1c1;text-decoration:none;}
.grayr {padding:2px;font-size:11px;background:#fff;float:right;}
.grayr a {padding:2px 5px;margin:2px;color:#000;text-decoration:none;;border:1px #c0c0c0 solid;}
.grayr a:hover {color:#000;border:1px orange solid;}
.grayr a:active {color:#000;background: #99ffff}
.grayr span.current {padding:2px 5px;font-weight:bold; margin:2px; color: #303030;background:#fff;border:1px orange solid;}
.grayr span.disabled {padding:2px 5px;margin:2px;color:#797979;background: #c1c1c1;border:1px #c1c1c1 solid;}
a{
	text-decoration:none;

	}
-->
</style>
<script src="../admin_core/templates/admin/js/list.js"></script>
</head>

<body style="text-align:center;">
<center>
<div style="width:100%; height:50px;">
</div>
<fieldset  style=" width:1110px;">
<legend><img src="images/311.gif"/>&nbsp;<span style="color:#333; font-size:15px; font-weight:bold;">管理员列表</span></legend>
<table>
  <caption style="font-size:14px;">
所有管理员信息列表
  </caption>
  <thead>
    <tr>
      <th>管理员名</th>
      <th>Email</th>
      <th>管理员类型</th>
      <th>最后登录时间</th>
      <th>最后登录IP</th>
      <th>操作</th>
    </tr>
  </thead>
  <tbody id="tab">
  #{foreach from=$admins item=admin}#
    <tr onmousemove="changeBackColor(this)" onmouseout="removeBackColor(this)">
      <td style="padding-left:5px; text-align:left;">#{$admin->getAdmin_name()}#</td>
      <td style="padding-left:5px; text-align:left;">#{$admin->getAdmin_email()}#</td>
      <td style="padding-left:5px; text-align:left;">#{if $admin->getAdmin_purview()==1}#
      普通管理员
      #{else if $admin->getAdmin_purview()==2}#
      管理员
      #{else}#
      超级管理员
      #{/if}#
      </td>
      <td>#{$admin->getLast_login()}#</td>
      <td>#{$admin->getLogin_ip()}#</td>
      <td>
      #{if $user->getAdmin_id()!=$admin->getAdmin_id()&&$user->getAdmin_purview()>$admin->getAdmin_purview()}#
      
      <img src="images/anonymous_(delete)_16x16.gif" width="14" height="14" /><a href="control.php?action=deleteAdmin&adminId=#{$admin->getAdmin_id()}#" onclick="return confirm('确定要删除管理员#{$admin->getAdmin_name()}#吗？');"  title="删除该管理员">删除</a>
      /<img src="images/anonymous_(edit)_16x16.gif" width="14" height="14" /><a href="control.php?action=modifyPurview&adminId=#{$admin->getAdmin_id()}#" title="修改该管理员权限">修改权限</a>
      #{else if $user->getAdmin_id()==$admin->getAdmin_id()}#
      <img src="images/anonymous_(delete)_16x16.gif" width="14" height="14" /><a href="#" title="不能操作当前登录用户">删除</a>
       /<img src="images/anonymous_(edit)_16x16.gif" width="14" height="14" /><a href="#" title="不能操作当前登录用户">修改权限</a>
      #{else if $user->getAdmin_purview()<$admin->getAdmin_purview()}#
      <img src="images/anonymous_(delete)_16x16.gif" width="14" height="14" /><a href="#" title="你无权操作该用户">删除</a>
       /<img src="images/anonymous_(edit)_16x16.gif" width="14" height="14" /><a href="#" title="你无权操作该用户">修改权限</a>
      #{/if}#
      </td>
    </tr>
    #{/foreach}#
  </tbody>
  
</table>
</fieldset>
</center>
</body>
</html>
